import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute, Params, Router } from '@angular/router';

@Component({
  selector: 'app-payresult',
  templateUrl: './payresult.component.html',
  styleUrls: ['./payresult.component.css'],
  encapsulation: ViewEncapsulation.None
})
export class PayresultComponent implements OnInit {

  constructor(private router: Router) { }
  scanname:string;
  total:String;
  ngOnInit() {
    this.scanname = sessionStorage.getItem('scanname');
    this.total = sessionStorage.getItem('totals');
    
  }

  back() {
    this.router.navigate(['/hospinfo/hospindex']);
  }

}
